#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project : gtmsAutoTestProject 
@File    : shop_application_event_insert_server.py
@IDE     : PyCharm 
@Author  : Mario
@Date    : 2022/5/5 18:14 
@Describe: 重启门店助手业务实现
"""
from APIs.middleApi.setup.pos.pos_manage_api import PosManageAPI


def pos_server_reboot(environment, brandCode):
    """
    POS门店助手服务重启
    :param environment: 环境
    :param brandCode: 品牌编码
    :return:
    """
    middle_requests = PosManageAPI(environment)
    middle_requests.shop_application_event_insert(brandCode, applicationName='pos-api')
    middle_requests.shop_application_event_insert(brandCode, applicationName='print-api')
